/**
 * @author Lukas Koell
 * @author David Medenjak
 * @author Johannes Riedmann
 */

public class Student extends Person{

    /**
     * the students matrikel number
     */
    private int matrikelNr;
    /**
     * Constructor.
     * @param name Name of the student.
     * @param matrikelNr Matricular number of the student.
     */
    public Student(String name, int matrikelNr) {
        super(name);
        this.matrikelNr = matrikelNr;
    }
    
    /**
     * @return the students matrikelnr
     */
    public int getMatrikelNr() {
        return matrikelNr;
    }
    
    /**
     * sets the students matrikelnr
     * @param matrikelNr
     */
    public void setMatrikelNr(int matrikelNr) {
        this.matrikelNr = matrikelNr;
    }

    /**
     * @return String representation for Student
     */
    @Override
    public String toString() {
        return getName() + ", MatNr: " + matrikelNr;
    }
}